package com.free.semantic.core.takeclient.impl;

import com.free.semantic.common.BaseNode;
import com.free.semantic.common.RangeObj;
import com.free.semantic.core.ConceptInstanceManage;
import com.free.semantic.core.takeclient.ConceptInsTakeCommand;

import java.util.List;

public class LocalManageImpl implements ConceptInsTakeCommand {


    private ConceptInstanceManage conceptInstanceManage;


    public LocalManageImpl(ConceptInstanceManage conceptManage) {
        this.conceptInstanceManage = conceptManage;
    }


    @Override
    public <T> List<T> take(List<BaseNode> nodes, RangeObj dest) {
        return conceptInstanceManage.goByLocatorNode(nodes, dest);
    }
}
